package edu.whu.demo.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import edu.whu.demo.domain.Schedule;
import edu.whu.demo.domain.ScheduleView;
/*import edu.whu.demo.domain.SecondComment;*/
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ScheduleViewDao extends BaseMapper<ScheduleView> {
    @Select("select sv.* from schedule_view sv "+
            "${ew.customSqlSegment}"
    )
    public IPage<ScheduleView> findScheduleView(IPage<ScheduleView> page, @Param(Constants.WRAPPER) QueryWrapper<ScheduleView> wrapper);

}
